undeploy: Parse integer more properly
authorColin Walters <walters@verbum.org>
Wed, 8 Nov 2023 21:15:01 +0000 (16:15 -0500)
committerColin Walters <walters@verbum.org>
Wed, 8 Nov 2023 21:15:01 +0000 (16:15 -0500)
commitc3cf5b237d72c732df075f15af9555f9b9ed9b91
treef9e3599683992cea03035d1a702e26b92fc31052
parente4b82c4a58f61b1ebf8c9b06c23bc20294d0f3a9
undeploy: Parse integer more properly

`atoi` doesn't offer any error checking.

Closes: https://github.com/ostreedev/ostree/issues/3088
src/ostree/ot-admin-builtin-undeploy.c
tests/admin-test.sh